Skip to content

Conversation

@Pankraz76
Copy link
Contributor

@Pankraz76 Pankraz76 commented May 21, 2025

@Pankraz76 Pankraz76 force-pushed the EmptyControlStatement-CheckThreadSafetyMojo branch from a32fd7a to 93afe81 Compare May 21, 2025 19:25
@Pankraz76 Pankraz76 marked this pull request as ready for review May 21, 2025 19:26
@Pankraz76 Pankraz76 changed the title EmptyControlStatement: CheckThreadSafetyMojo chore: CheckThreadSafetyMojo PMD-Rule: EmptyControlStatement May 22, 2025
@Pankraz76 Pankraz76 force-pushed the EmptyControlStatement-CheckThreadSafetyMojo branch from 93afe81 to 86b57c2 Compare May 23, 2025 07:00
@Pankraz76 Pankraz76 requested review from desruisseaux and elharo May 23, 2025 07:01
@Pankraz76 Pankraz76 changed the title chore: CheckThreadSafetyMojo PMD-Rule: EmptyControlStatement fix: potential while(true) in CheckThreadSafetyMojo PMD-Rule: EmptyControlStatement May 23, 2025
@Pankraz76 Pankraz76 changed the title fix: potential while(true) in CheckThreadSafetyMojo PMD-Rule: EmptyControlStatement fix: debounce while(true) in CheckThreadSafetyMojo PMD-Rule: EmptyControlStatement May 23, 2025
@Pankraz76 Pankraz76 requested a review from gnodet May 23, 2025 11:31
while (go.isEmpty()) {
// wait for start
try {
Thread.sleep(100); // wait for the start
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Thread.sleep(100); // wait for the start
MILLISECONDS.sleep(100); // wait for the start

https://docs.oracle.com/javase/9/docs/api/java/util/concurrent/TimeUnit.html#sleep-long-

@Pankraz76
Copy link
Contributor Author

@Pankraz76 Pankraz76 closed this Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants